/**
 * 
 */
package bingo.validation.annotations;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import bingo.validation.IValidator;

/**
 * 一个Check表示一个约束检查，定义了此约束的验证类和验证出错消息
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.ANNOTATION_TYPE,ElementType.FIELD})
public @interface Check{

	Class<? extends IValidator> validator();
	
	String message() default "";
}
